//
//  ZBShareMenuView.h
//  MessageDisplay
//
//  Created by zhoubin@moshi on 14-5-13.
//  Copyright (c) 2014年 Crius_ZB. All rights reserved.
//

// 版权属于原作者
// http://code4app.com (cn) http://code4app.net (en)
// 发布代码于最专业的源码分享网站: Code4App.com

#import <UIKit/UIKit.h>
#import "MessagePhotoMenuItem.h"
#import "ZYQAssetPickerController.h"
#import "CCActionSheet.h"
#define kZBMessageShareMenuPageControlHeight 30


@protocol MessagePhotoViewDelegate <NSObject>


@optional
-(void)didSelectePhotoMenuItem:(MessagePhotoMenuItem *)shareMenuItem atIndex:(NSInteger)index;

-(void)addPicker:(ZYQAssetPickerController *)picker;          //UIImagePickerController
-(void)addUIImagePicker:(UIImagePickerController *)picker;

/*
 点击图片
 */
- (void)messagePhotoView:(MessagePhotoMenuItem *)messagePhotoItemView
didSelectPhotoItemAtIndex:(NSInteger)index;
@end

@interface MessagePhotoView : UIView<CCActionSheetDelegate,UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIScrollViewDelegate,MessagePhotoItemDelegate,ZYQAssetPickerControllerDelegate>
{
    //下拉菜单
//    UIActionSheet *myActionSheet;
    CCActionSheet *myActionSheet;
    //图片2进制路径
    NSString* filePath;
}
@property(nonatomic,strong) UIScrollView *scrollview;


/**
 *  第三方功能Models
 */
//@property (nonatomic,strong) NSMutableArray *photoMenuItems;

//@property (nonatomic,strong) NSMutableArray *itemArray;
//@property (nonatomic,strong) NSMutableArray *marrImage;
@property (nonatomic, strong) NSMutableArray *marrImageAddData;//添加图片数据
@property (nonatomic, strong) NSMutableArray *marrImageDeleteURL;//删除图片地址
@property (nonatomic, strong) NSMutableArray *marrImageData;
@property (nonatomic, strong) NSMutableArray *marrImageNetURL;
@property (nonatomic,strong) NSString *addPicButton;
@property (nonatomic) CGRect RectImage;
@property (nonatomic) NSInteger iMaxItemCount;
@property (nonatomic) CGSize sizeAddPicButton;

@property (nonatomic, assign) id <MessagePhotoViewDelegate> delegate;

-(void)reloadDataWithImage:(UIImage *)image;

- (void)reloadData;

- (id)initWithFrame:(CGRect)frame addPicButton:(NSString *)PicButton;
@end
